#include "JumpListener.h"
#include "JumpEvent.h"
#include "GameApp.h"

JumpListener::JumpListener(void)
{

}


JumpListener::~JumpListener(void)
{

}

bool JumpListener::handleEvent(IGameEvent const &event)
{
	const JumpEvent &evt = static_cast<const JumpEvent&>(event);

	btRigidBody *body = evt.mpObject->getBody();
	MoveableObjectPtr obj = evt.mpObject;

	obj->jump();

	return true;
}